package dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import bean.User;

public interface UserDao {
	@MapKey("user_id")
	public Map<Integer, User> getUserByLastNameLikeReturnMap(String string);
	
	public Map<String, Object> getUserByIdReturnMap(Integer id);
	
	public List<User> getUserListName(String string);
	
	public User getUserId(Integer id);

	public Integer insertUser(User user);

	public Integer updateUser(User user);

	public Long deleteUser(Integer id);

	public User getIdAndName(@Param("id") Integer id, @Param("name") String name);
}
